22 scanf("%d %d", &m
, &n
);
30 assert(m
>=1 && m
<=100 && n
>=1 && n
<=100);
31 for(l_1
=0;l_1
<m
;l_1
++)
33 for(l_2
=0;l_2
<n
;l_2
++)
36 while(ch
=='\n' || ch
=='\r' || ch
==' ')
41 assert(ch
=='@' || ch
=='*');
48 for(l_1
=0;l_1
<m
;l_1
++)
50 for(l_2
=0;l_2
<n
;l_2
++)
52 if(array
[l_1
][l_2
]=='@')
61 //assert(z<=100); //This generates a Runtime Error... Bad problem description!
70 int recur(int mm
, int nn
)
76 int dx
[] = {-1, -1, -1, 0, 1, 1, 1, 0};
77 int dy
[] = {-1, 0, 1, 1, 1, 0, -1, -1};
79 for( k
= 0; k
< 8; k
++)
84 if(i
>= 0 && i
< m
&& j
>= 0 && j
< n
)